﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SJWHList.aspx.cs" Inherits="SJWH_SJWHList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
  <style type="text/css">
    body
    {
      color: #000;
      background-color: #EEF2FB;
      margin: 0px;
      font-family: "宋体";
      font-size: 12px;
    }
  </style>
  <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
    <tr>
      <td width="17" valign="top" background="../images/mail_leftbg.gif">
        <img src="../images/left-top-right.gif" width="17" height="29" />
      </td>
      <td valign="top" background="../images/content-bg.gif">
        <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
          id="table2">
          <tr>
            <td height="31">
              <div class="titlebt">
                数据维护</div>
            </td>
          </tr>
        </table>
      </td>
      <td width="16" valign="top" background="../images/mail_rightbg.gif">
        <img src="../images/nav-right-bg.gif" width="16" height="29" />
      </td>
    </tr>
    <tr>
      <td valign="middle" background="../images/mail_leftbg.gif">
        &nbsp;
      </td>
      <td valign="top" bgcolor="#F7F8F9">
        <div style="width: 90%; height: 30px; margin-top: 5px;">
          <table width="100%">
            <tr>
              <td align="left" width="70%">
                <asp:Label ID="Label2" runat="server" Text="日期(格式为年月)"></asp:Label>
                <asp:TextBox ID="txtRQ" runat="server" Width="50px"></asp:TextBox>
                <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRQ"
                  ErrorMessage="日期不能为空"></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtRQ"
                  ErrorMessage="请输入数值" MaximumValue="300001" MinimumValue="200001" Type="Double"></asp:RangeValidator>
              </td>
              <td align="right" width="30%">
              <%--  <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/SJWH/SJWHAdd.aspx">数据维护录入</asp:HyperLink>--%>
              </td>
            </tr>
          </table>
        </div>
        <div style="width: 90%;">
          <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
            KeyFieldName="xh" Width="100%" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
            CssPostfix="BlackGlass" Theme="Aqua">
            <SettingsBehavior AllowFocusedRow="True" />
            <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass">
              <Header ImageSpacing="5px" SortingImageSpacing="5px">
              </Header>
            </Styles>
            <Images ImageFolder="~/App_Themes/BlackGlass/{0}/">
              <FilterRowButton Height="13px" Width="13px" />
            </Images>
            <Columns>
              <dxwgv:GridViewDataTextColumn Caption="序号" FieldName="xh" VisibleIndex="0" Width="40px"
                FixedStyle="Left">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="客户名称" FieldName="KHMC" VisibleIndex="1" FixedStyle="Left"
                Width="200px">
              </dxwgv:GridViewDataTextColumn>
              <%-- <dxwgv:GridViewDataTextColumn Caption="客户编号" FieldName="KHBH" VisibleIndex="1">
              </dxwgv:GridViewDataTextColumn>--%>
              <dxwgv:GridViewDataTextColumn Caption="用气性质" FieldName="YQXZ" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="客户级别" FieldName="KHJB" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="IC卡户" FieldName="IC" VisibleIndex="1" Width="40px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="上月表数" FieldName="SYBS" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <%-- <dxwgv:GridViewDataTextColumn Caption="上月抄表<br>时间" FieldName="SYCBSJ" VisibleIndex="1"
                Width="60px">
              </dxwgv:GridViewDataTextColumn>--%>
              <dxwgv:GridViewDataTextColumn Caption="本月表数" FieldName="BYBS" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <%-- <dxwgv:GridViewDataTextColumn Caption="本月抄表<br>时间" FieldName="CBSJ" VisibleIndex="1"
                Width="80px">
              </dxwgv:GridViewDataTextColumn>--%>
              <dxwgv:GridViewDataTextColumn Caption="实际用气量" FieldName="SJYQL" VisibleIndex="1"
                Width="65px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="本期气量" FieldName="BQQL2" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="备注" FieldName="CBBZ" VisibleIndex="1" Width="60px">
              </dxwgv:GridViewDataTextColumn>
              <dxwgv:GridViewDataTextColumn Caption="" FieldName="" VisibleIndex="3" Width="40px">
                <DataItemTemplate>
                  <dxe:ASPxHyperLink ID="ASPxHyperLink3" runat="server" NavigateUrl='<%#"SJWHAdd.aspx?id="+ Eval("CBSJID")+"&yqxzid="+Eval("yqxzid")%>'
                    Text="编辑" />
                </DataItemTemplate>
              </dxwgv:GridViewDataTextColumn>
              <%-- <dxwgv:GridViewDataTextColumn Caption="" FieldName="" VisibleIndex="11" Width="40px">
                <DataItemTemplate>
                  <asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete"
                    OnClientClick="return confirm('是否删除?')" Text="删除" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"CBSJid") %>'
                    OnCommand="lbDelete_Command"></asp:LinkButton>
                </DataItemTemplate>
              </dxwgv:GridViewDataTextColumn>--%>
            </Columns>
            <Settings  ShowHorizontalScrollBar="True"
              UseFixedTableLayout="True" />
            <StylesEditors>
              <ProgressBar Height="25px">
              </ProgressBar>
            </StylesEditors>
          </dxwgv:ASPxGridView>
        </div>
      </td>
      <td background="../images/mail_rightbg.gif">
        &nbsp;
      </td>
    </tr>
    <tr>
      <td valign="bottom" background="../images/mail_leftbg.gif">
        <img src="../images/buttom_left2.gif" width="17" height="17" />
      </td>
      <td background="../images/buttom_bgs.gif">
        <img src="../images/buttom_bgs.gif" width="17" height="17">
      </td>
      <td valign="bottom" background="../images/mail_rightbg.gif">
        <img src="../images/buttom_right2.gif" width="16" height="17" />
      </td>
    </tr>
  </table>
  </form>
</body>
</html>
